<%@ Page Language="C#" MasterPageFile="~/MasterPage/Site.Master" AutoEventWireup="true"
    CodeBehind="ApplicationConfigurationEdit.aspx.cs" Inherits="OccurrencesWeb.Page.ApplicationConfigEdit" ValidateRequest="false"%>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" runat="server">

    <asp:UpdatePanel ID="updatePanel" runat="server"><Triggers><asp:PostBackTrigger ControlID="lnkCancel" /></Triggers>
        <ContentTemplate>
            <div id="body-content">
                <div id="body-content-title">
                    <h2>
                        <asp:Literal ID="ltrTitleMenuSelected" runat="server"></asp:Literal></h2>
                    <h3>
                        Application Configuration</h3>
                </div>
                <div class="frame">
                    <div class="frame-body">
                        <table border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td class="font-label">
                                    Key:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtApplicationConfigKey" runat="server" MaxLength="50"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvApplicationConfigKey" runat="server" ControlToValidate="txtApplicationConfigKey"
                                        ErrorMessage="*" Display="None" SetFocusOnError="True" EnableClientScript="False"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="font-label">
                                    Value<span class="required">*</span>:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtApplicationConfigValue" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvApplicationConfigValue" runat="server" ControlToValidate="txtApplicationConfigValue"
                                        ErrorMessage="*" Display="None" SetFocusOnError="True" EnableClientScript="False"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="font-label">
                                    Description:<span class="required">*</span>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtApplicationConfigDescription" runat="server" MaxLength="50" TextMode="MultiLine"
                                        Width="298px" CssClass="medium"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvApplicationConfigDescription" runat="server" ControlToValidate="txtApplicationConfigDescription"
                                        ErrorMessage="*" Display="None" SetFocusOnError="True" EnableClientScript="False"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="font-label">
                                    Type:
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlConfigType" runat="server"></asp:DropDownList>
                                    <asp:RequiredFieldValidator ID="rfvApplicationConfigType" runat="server" ControlToValidate="ddlConfigType"
                                        ErrorMessage="*" Display="None" SetFocusOnError="True" EnableClientScript="False"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="frame-navigation">
                        <div class="area-buttons">
                            <asp:LinkButton ID="lnkSave" runat="server" ToolTip="SAVE" OnClick="OnSaveClick"
                                CssClass="bg-button-left">Save</asp:LinkButton>
                            <asp:LinkButton ID="lnkCancel" runat="server" ToolTip="VIEW LIST" OnClick="OnCancelClick"
                                CssClass="bg-button-left" CausesValidation="false">View List</asp:LinkButton>
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
